<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta http-equiv="pragma" content="no-cache"> 
		<meta http-equiv="cache-control" content="no-cache"> 
		<meta http-equiv="expires" content="0"> 
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=Edge">
		<title>东东推后台</title>
		<link href="../../../static/bootstrap-3.3.7/css/bootstrap.min.css" rel="stylesheet">
		<link href="../../../static/css/common.css" rel="stylesheet">
		<link href="../../../static/css/webuploader.css" rel="stylesheet">
		<link href="../../../static/css/index.css" rel="stylesheet">
	    

	</head>
	<body>
		<div class="container-fluid">
			<div class="container-fluid ddtBackHeard">
				<div class="row" style="margin-left: 0;margin-right: 0;">
					<div class="col-xs-6"><img class="pull-left" src="../../../static/images/logo1.png"><div class="pull-left ddtBackH1">个人中心</div>
						<div class="pull-left return" onclick="javascript:location.href='../../../index.html' ">首页</div>
					</div>
					<div class="col-xs-6 text-right" style="margin-top: 4px;">
						<div class="ddtBackYhHear pull-right" id="username" data-container="body" data-toggle="popover" data-placement="bottom" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus."><img  width="30px" class="img-circle"></div>
						<div class="ddtBackHelp pull-right"><span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span>帮助</div>
					</div>
				</div>
			</div>
			
			<div class="row ddtBackCon" >
				<div class="col-md-2 col-sm-4" id="leftMeun" style="height:920px;">
					<div class="panel-group" role="tablist">
					    <div class="panel panel-default ooo leftMeunClik" id="personalInformation">
					      <div class="panel-heading">
					        <h4 class="panel-title">
					          <a role="button">
					            	<span class="glyphicon" aria-hidden="true">　</span>个人信息
					          </a>
					        </h4>
					      </div>
					    </div>
					     <!--<div class="panel panel-default">
					      <div class="panel-heading" role="tab" id="collapseListGroupHeading2">
					        <h4 class="panel-title">
					          <a class="leftMeunOne" role="button" data-toggle="collapse" href="#collapseListGroup2" aria-expanded="true" aria-controls="collapseListGroup2">
					            	<span class="glyphicon glyphicon-triangle-bottom" aria-hidden="true"></span>商品管理
					          </a>
					        </h4>
					      </div>
					      <div id="collapseListGroup2" class="panel-collapse cllapse in" role="tabpanel" aria-labelledby="collapseListGroupHeading2" aria-expanded="true" style="">
					        <ul class="list-group">
					          <li class="list-group-item " id="uploadGoods">上传商品</li>
					          <li class="list-group-item " id="auditingGoods">审核中商品</li>
					          <li class="list-group-item " id="egisGoods">审核通过商品</li>
					          <li class="list-group-item " id="notAuditedGoods">未审核通过商品</li>
					        </ul>
					      </div>
					    </div>-->
					</div>
				</div>
				<div class="col-md-10 col-sm-8" id="rightMeunCon" style="height: 920px;">
					<div class="col-md-12 col-sm-12" id="backCon">
						<iframe src="../../back/personal/personalInformation.html" width="100%" height="730px" style="border: none;"></iframe>
						<!--<iframe src="../../back/personal/uploadGoods.html" width="100%" height="920px" style="border: none;display: none;"></iframe>
						<iframe src="../../back/personal/auditingGoods.html" width="100%" height="740px" style="border: none;display: none;"></iframe>
						<iframe src="../../back/personal/egisGoods.html" width="100%" height="740px" style="border: none;display: none;"></iframe>
						<iframe src="../../back/personal/notAuditedGoods.html" width="100%" height="740px" style="border: none;display: none;"></iframe>-->
					</div>
				</div>
			</div>
		</div>
		
	<script src="../../../static/js/jquery-1.9.1.min.js" type="text/javascript"></script>
	<script src="../../../static/bootstrap-3.3.7/js/bootstrap.min.js" type="text/javascript"></script>
	<script src="../../../static/js/config.js" type="text/javascript"></script>
	<script type="text/javascript" src="../../../static/js/ajaxupload.js"></script>

	<script>
		$(document).ready(function(){
			var token = localStorage.getItem('token');
			$.ajax({
				url:C.interface.userInter,
				type:'get',
				dataType:'json',
				data:{token:token,appId:'gzh'},
				success:function(data){
//					console.log(data);
					if(data.code == "10000"){
						$(".img-circle").attr('src',data.data.headImg)
						$(".img-circle").after(data.data.nickName)
					}else{
						window.location.href = "login.html"
					}
				}
			})
			
//			$("#backCon").load("../../back/personal/personalInformation.html");
			
			//$('#example').popover()
			var hear = $(".ddtBackHeard").outerHeight(true);	/*获取后台头部高度*/
			var windowH = $(window).height();					/*获取浏览器可视高度*/
			$("#leftMeun").height(windowH-hear);				/*设置高度*/
			/*$("#backCon").height(windowH-hear);*/
			
			/*浏览器变化时修改高度*/
			$(window).resize(function() {
				windowH = $(window).height();
				$("#leftMeun").height(windowH-hear);
				/*$("#backCon").height(windowH-hear);*/
			});
			
			
			$("#personalInformation").click(function(){
				$(".ooo").removeClass("leftMeunClik");
				$(this).addClass("leftMeunClik");
				$('iframe:eq(0)').css("display","block");
				$('iframe:eq(1)').css("display","none");
				$('iframe:eq(2)').css("display","none");
				$('iframe:eq(3)').css("display","none");
				$('iframe:eq(4)').css("display","none");
//				$("#backCon").load("../../back/personal/personalInformation.html");
			});
			
			$("#uploadGoods").click(function(){
				$(".list-group-item").removeClass("leftMeunClik");
				$(".ooo").removeClass("leftMeunClik");
				$(this).addClass("leftMeunClik");
				$('iframe:eq(0)').css("display","none");
				$('iframe:eq(1)').css("display","block");
				$('iframe:eq(2)').css("display","none");
				$('iframe:eq(3)').css("display","none");
				$('iframe:eq(4)').css("display","none");
//				$("#backCon").load("../../back/personal/uploadGoods.html");
			});
			$("#auditingGoods").click(function(){
				$(".list-group-item").removeClass("leftMeunClik");
				$(".ooo").removeClass("leftMeunClik");
				$(this).addClass("leftMeunClik");
				$('iframe:eq(0)').css("display","none");
				$('iframe:eq(1)').css("display","none");
				$('iframe:eq(2)').css("display","block");
				$('iframe:eq(3)').css("display","none");
				$('iframe:eq(4)').css("display","none");
//				$("#backCon").load("../../back/personal/auditingGoods.html");
			});
			$("#egisGoods").click(function(){
				$(".list-group-item").removeClass("leftMeunClik");
				$(".ooo").removeClass("leftMeunClik");
				$(this).addClass("leftMeunClik");
				$('iframe:eq(0)').css("display","none");
				$('iframe:eq(1)').css("display","none");
				$('iframe:eq(2)').css("display","none");
				$('iframe:eq(3)').css("display","block");
				$('iframe:eq(4)').css("display","none");
//				$("#backCon").load("../../back/personal/egisGoods.html");
			});
			$("#notAuditedGoods").click(function(){
				$(".list-group-item").removeClass("leftMeunClik");
				$(".ooo").removeClass("leftMeunClik");
				$(this).addClass("leftMeunClik");
				$('iframe:eq(0)').css("display","none");
				$('iframe:eq(1)').css("display","none");
				$('iframe:eq(2)').css("display","none");
				$('iframe:eq(3)').css("display","none");
				$('iframe:eq(4)').css("display","block");
//				$("#backCon").load("../../back/personal/notAuditedGoods.html");
			});
			
			$('.text-danger').popover('hide');
			
			//用户头像信息
			
			
		});
	</script>
	</body>
</html>
